﻿var Boss币;
var 征服者币;
var BossName;
var 活跃值;
var 积分值;


function start() {
	switch (cm.getMapId()) {
	case 105100400:
		BossName = "简单蝙蝠怪"; 
		Boss币 = 2;
		活跃值 = 250;
		征服者币 = 4;
		break;
	case 105100300:
		BossName = "普通蝙蝠怪"; 
		Boss币 = 3;
		征服者币 = 6;
		活跃值 = 500;
		break;
	case 220080001: // 3
		BossName = "帕普拉图斯";
		Boss币 = 6;
		征服者币 = 9;
		活跃值 = 700;
		break;
	case 222130210: // 2
		BossName = "暴力熊";
		Boss币 = 6;
		征服者币 = 9;
		活跃值 = 900;
		break;
	case 280030200:
		BossName = "简单扎昆"; 
		Boss币 = 6;
		征服者币 = 12;
		活跃值 = 1100;
		break;
	case 280030100:
		BossName = "普通扎昆";
		Boss币 = 8;
		征服者币 = 16;
		活跃值 = 1300;
		break;
	case 280030001:
		BossName = "进阶扎昆";
		Boss币 = 10;
		征服者币 = 20;
		活跃值 = 1600;
		break;
	case 300030310: // ok
		BossName = "艾菲尼娅";
		Boss币 = 3;
		征服者币 = 6;
		活跃值 = 500;
		break;
	case 240060200:
		BossName = "暗黑龙王";
		Boss币 = 9;
		征服者币 = 18;
		活跃值 = 1900;
		break;
	case 240060201:
		BossName = "进阶暗黑龙王";
		Boss币 = 12;
		征服者币 = 24;
		活跃值 = 2100;
		break;
	case 272030400:
		BossName = "阿卡伊勒";
		Boss币 = 12;
		征服者币 = 24;
		活跃值 = 1900;
		break;
	case 211070102:  
		BossName = "简单班·雷昂";
		Boss币 = 6;
		征服者币 = 12;
		活跃值 = 800;
		break;
	case 211070100:
		BossName = "困难班·雷昂";
		Boss币 = 8;
		征服者币 = 16;
		活跃值 = 1200;
		break;
	case 262030300:
		BossName = "普通希拉";
		Boss币 = 7;
		征服者币 = 14;
		活跃值 = 1000;
		break;
	case 262031300:
		BossName = "困难希拉";
		Boss币 = 10;
		征服者币 = 20;
		活跃值 = 1500;
		break;
	case 270050100:
		BossName = "品克缤";
		Boss币 = 13;
		征服者币 = 26;
		活跃值 = 2400;
		积分值 = 2400
		break;
	case 270051100:
		BossName = "混沌品克缤";
		Boss币 = 15;
		征服者币 = 30;
		活跃值 = 2700;
		积分值 = 2700		
		break;
	case 252030100:
		BossName = "拉瓦纳";
		Boss币 = 6;
		征服者币 = 9;
		活跃值 = 900;
		break;
	case 703020101:
		BossName = "钻机";
		Boss币 = 6;
		征服者币 = 12;		
		活跃值 = 900;
		break;
	case 703020100:
		Boss币 = 8;
		征服者币 = 16;		
		活跃值 = 1200;
		BossName = "强化钻机";
		break;
	case 105200410:
		Boss币 = 9;
		征服者币 = 18;		
		活跃值 = 1400;
		积分值 = 1400;		
		BossName = "贝伦";
		break;
	case 105200810:
		Boss币 = 9;
		征服者币 = 18;		
		活跃值 = 1400;
		积分值 = 1400;	
		BossName = "进阶贝伦";
		break;
	case 105200310:
		Boss币 = 9;
		征服者币 = 18;		
		活跃值 = 1400;
		积分值 = 1400;		
		BossName = "血腥女王";
		break;
	case 105200710:
		Boss币 = 9;
		征服者币 = 18;		
		活跃值 = 1400;
		积分值 = 1400;	
		BossName = "进阶血腥女王";
		break;
	case 105200210:
		Boss币 = 9;
		征服者币 = 18;		
		活跃值 = 1400;
		积分值 = 1400;		
		BossName = "皮埃尔";
		break;
	case 105200610:
		Boss币 = 12;
		征服者币 = 24;		
		活跃值 = 1700;
		积分值 = 1700;	
		BossName = "进阶皮埃尔";
		break;
	case 105200110:
		Boss币 = 9;
		征服者币 = 18;		
		活跃值 = 1400;
		积分值 = 1400;		
		BossName = "半半";
		break;
	case 105200510:
	    Boss币 = 12;
		征服者币 = 24;		
		活跃值 = 1700;
		积分值 = 1700;	
		BossName = "进阶半半";
		break;
	case 863010700:
	    Boss币 = 10;
		征服者币 = 20;		
		活跃值 = 1500;
		BossName = "贝勒·德";
		break;
	case 271040100:
	    Boss币 = 16;	
		征服者币 = 28;		
		活跃值 = 2500;
		积分值 = 2500;	
		BossName = "女皇希纳斯";
		break;
	case 401060300:
	    Boss币 = 20;	
		征服者币 = 35;		
		活跃值 = 2800;
		积分值 = 2800;		
		BossName = "简单麦格纳斯";
		break;
	case 401060200:
	    Boss币 = 20;	
		征服者币 = 35;		
		活跃值 = 2800;
		积分值 = 2800;		
		BossName = "普通麦格纳斯";
		break;
	case 401060100:
	    Boss币 = 25;	
		征服者币 = 40;		
		活跃值 = 3200;
		积分值 = 3200;		
		BossName = "困难麦格纳斯";
		break;
	case 807300110:
		Boss币 = 3;
		积分值 = 800;		
		BossName = "普通森兰丸";
		break;

	case 807300210:
		Boss币 = 5;
		积分值 = 1000;	
		BossName = "困难森兰丸";
		break;
	case 811000500:
		Boss币 = 5;
		积分值 = 1000;	
		BossName = "浓姬";
		break;
	case 350160240:
		cm.gainItem(4310199, 8);
		积分值 = 2500;	
		BossName = "戴米安";
		break;
/*		
	case 不知道代码:
                                烙印币x12 PPMS微积分x2800  困难黛米安你没写。。。
		BossName = "困难戴米安";
		break;
		
	case 不知道代码:
		BossName = "斯乌普通";   埃苏莱布斯币x8 PPMS微积分x3000
		break;
		
	case 不知道代码:
		BossName = "斯乌困难";   埃苏莱布斯币x12 PPMS微积分x3500
		break;
		
    case  不知道代码:
		Boss币 = rand(15, 20);
		BossName = "乌鸦天狗";   boss币x5 PPMS微积分x1000
		break;
		
	    case  不知道代码:
		Boss币 = rand(15, 20);
		BossName = "露西德";   幻影币x8 PPMS微积分x3200  这里送币的我感觉玩家背包如果满了怎么办那就把判断玩家背包其他栏至少要有4格做到进入BOSS副本的远征队，比如我要打扎昆背包少于3格就提示请先整理背包否则无法获取副本奖励也不许玩家进入
		break;	
	    case  不知道代码:
		Boss币 = rand(15, 20);
		BossName = "困难露西德";   幻影币x12 PPMS微积分x3800  这里送币的我感觉玩家背包如果满了怎么办那就把判断玩家背包其他栏至少要有4格做到进入BOSS副本的远征队，比如我要打扎昆背包少于3格就提示请先整理背包否则无法获取副本奖励也不许玩家进入
		break;	*/		
	default:
		cm.mapMessage(-1, "该BOSS没有设置击杀结算，请联系管理员");
		//cm.mapMessage(6, "[击杀通告]：该BOSS没有设置击杀结算，请联系管理员。");
		cm.dispose();
		return;
	}
	cm.startMapEffect(BossName + "已被击杀，战利品已经送入你的背包！", 5120116);
	cm.setPQLog("击败boss总数",1);
	

	if (Boss币 != undefined || 征服者币 != undefined || 积分值 != undefined || 活跃值 != undefined) {
		cm.gainItem(4310143, Boss币); //BOSS币结算
		cm.gainItem(4310036, 征服者币);
		cm.gainPlayerEnergy(积分值);
		cm.gainPlayerPoints(活跃值);
		cm.mapMessage(-1, "玩家 " + cm.getChar().getName() + " 击败了" + BossName + "，获得战利品BOSS币 " + Boss币 + " 枚");
		cm.mapMessage(6, "[击杀通告]：玩家 " + cm.getChar().getName() + " 击败了" + BossName + "，获得战利品BOSS币 " + Boss币 + " 枚,征服者币" + 征服者币 + "枚,真是好运气喔！");
	}
	cm.dispose();
}

function rand(lbound, ubound) {
	return Math.floor(Math.random() * (ubound - lbound)) + lbound;
}
